<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue v-once 指令</title>
</head>
<body>
<div id="app">
    <div v-pre >{{ info }}</div>
    <div v-pre v-text="info"></div>

    <div>{{ info }}</div>


</div>
</body>
<script type="module">

    import {createApp, ref} from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'

    const app = createApp({
        setup() {
            let info = ref("Hello, Vue!")

            setInterval(
                () => {
                    info.value += "!"
                    console.log(info.value);
                },
                1000
            )

            return {info}
        }
    })

    app.mount("#app")
</script>
</html>